<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="web3.min.js"></script>
<script>
    var gasPrice=null;
    window.web3=new Web3(window.ethereum);

    async function getGasPrice(){
         gasPrice=await window.web3.eth.getGasPrice(); // 获取gas费
    }
    getGasPrice();
</script>
</head>


<body>
    
</body>
</html>